//
//  PlanInfo.h
//  SportSocial
//
//  Created by yull on 15/2/3.
//  Copyright (c) 2015年 yull. All rights reserved.
//

typedef NS_ENUM(NSInteger, PlanInfoStatus)
{
    PlanInfoStatusNone,
    PlanInfoStatusStart,
    PlanInfoStatusStop,
    PlanInfoStatusEnd,
};

#import <Foundation/Foundation.h>
#import <FMResultSet.h>

@interface PlanInfo : NSObject

@property (nonatomic, assign) UInt64 dbId;

@property (nonatomic, copy) NSString *icon;

@property (nonatomic, assign) NSInteger year;

@property (nonatomic, assign) NSInteger month;

@property (nonatomic, assign) NSInteger day;

@property (nonatomic, assign) NSInteger calorie;

@property (nonatomic, assign) PlanInfoStatus status;

@property (nonatomic, copy) NSString *sport_name;

@property (nonatomic, assign) CGFloat distance;

@property (nonatomic, assign) NSTimeInterval start_date;

@property (nonatomic, assign) NSTimeInterval end_date;

@property (nonatomic, copy) NSString *address;

@property (nonatomic, assign) CGFloat longitude;

@property (nonatomic, assign) CGFloat latitude;

@property (nonatomic, assign) CGFloat max_speed;

@property (nonatomic, assign) CGFloat avg_speed;

@property (nonatomic, strong) NSMutableArray *locations;

+ (instancetype)planInfoWithResutlSet:(FMResultSet *)resultSet;

- (NSString *)convertStartDateToString;

- (NSString *)convertEndDateToString;

- (NSString *)getIconImageName;
@end
